﻿using PagedList;

namespace Web.Base.Extensions
{
    public static class PagedListExtension
    {
        public static IPagedList<T> ToPagedList<T>(this Ayatta.Contract.Component.PagedList<T> list, int index, int size)
        {
            return new StaticPagedList<T>(list.Data, index, size, list.Total);
        }
    }
}